package com.wang.ymcc.service.impl;

import com.wang.ymcc.dot.bluckdto;
import com.wang.ymcc.mapper.BluckMapper;
import com.wang.ymcc.service.IBluckService;
import org.apache.ibatis.annotations.Insert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BluckServiceImpl implements IBluckService {

    @Autowired
    private BluckMapper bluckMapper;

    @Override
    public void add(bluckdto bluckdto) {
        bluckMapper.add(bluckdto);
    }

    @Override
    public bluckdto selectByphone(String phone) {
        return bluckMapper.selectByphone(phone);
    }

    @Override
    public List<bluckdto> lahei(bluckdto bluckdto) {
        return bluckMapper.findall();
    }
}
